-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
typ2docx: init at 0.8.0; python3Packages.{saxonche, pdfservices-sdk}: init #467150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@HHR2020 I have a feeling that it's because we didn't do the inclusion of lock file in the appropriate way. The whole point of Nix is about reproducibility, there's no way that CI is "stricter" (everything should be strict). Maybe you should do search for examples on how other packages are doing this kind of patching/additional file inclusion? I LLM gave me some hints but I'm not sure if they are valid. |
|
Also, it might be a good idea to ask if Adobe/Saxonica are willing to maintain the dependencies. I don't think Adobe is taking care of their Python SDK based on what I see in the codebase. But Saxonica's developers are very responsive. I can help create a ticket in their issue tracker. |
The current way of lock file inclusion is not appropriate as it triggers import from derivation, which is enabled by default but not allowed in nixpkgs because it slows down the evaluation. Finally I found a solution in nixpkgs manual, it turns out that fetchCargoVendor allows patching.
The 2 dependencies are quite easy to maintain(as bots will help making update prs; it would be better if Saxonica distribute a source package instead of wheels though). Asking upstream developer to maintain sounds odd to me if they don't use nix, but it's good to hear that Saxonica devs are responsive. So, I think this pr is ready, but we need to wait until #454434 gets into master |
This comment was marked as outdated.
This comment was marked as outdated.
|
@HHR2020 could you also submit a PR to |
Yes, I'll create one after this pr gets merged |
|
@HHR2020 seems like the click dependency update is merged into master already |
Not really, it's still in staging, and it will be manually merged to staging-next first. It usually takes 2~4 weeks to create a staging-next => master pr, the last staging-next => master pr was on 2025-11-14, so let's be patient. I noticed 0.8.0 is released, I'll update the pr later. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/openssl-error-during-uv-tool-install-typ2docx/73074/2 |
|
It seems that someone is already using the package on NixOS, so I updated the |
This comment was marked as outdated.
This comment was marked as outdated.
If you're referring to the recent post in NixOS forum, it was installed via uv, so it's irrelevant I guess? The problem with the patch is, it functions the same, but users won't see that flag in the help doc. |
Yes, I'm suggesting him to use this pr, because saxonche can't work without patchelf, which means it has to be packaged in nixpkgs.
Are the flags expected, or it misses something? |
Never mind, it should be the same. I thought changing |
This comment was marked as outdated.
This comment was marked as outdated.
8dbc540 to
dead822
Compare
|
@dotlambda Thanks for your detailed review, I added an update script and it should be OK now. |
|
Co-authored-by: dotlambda <[email protected]>
Co-authored-by: dotlambda <[email protected]>
Co-authored-by: dotlambda <[email protected]>
|
Click 8.3.1 has been merged into master, so I cleaned up the code and rebased this pr onto master. |
|
Add typ2docx, a tool to convert typst to docx.
python3Packages.{saxonche, pdfservices-sdk}are added as dependencies.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.